update PGResult and create PGRow class in the PostgreSQL library, plus quickstart#7
Open
taplin wants to merge 11 commits intoPerfectlySoft:masterfrom
Open
update PGResult and create PGRow class in the PostgreSQL library, plus quickstart#7taplin wants to merge 11 commits intoPerfectlySoft:masterfrom
taplin wants to merge 11 commits intoPerfectlySoft:masterfrom
Conversation
update from PerfectlySoft master
Updated for 8-04
…esults and iterable behavior.
update from master
…oluted. Add Tests
…field index, updated subscript code to return just field value for subscript by index
… or row can be accessed multiple times
zorn
reviewed
Sep 24, 2016
| for row:PGRow in result! { | ||
|
|
||
| //raw description | ||
| Log.info(message: "Row description: \(row)") |
There was a problem hiding this comment.
Use of unresolved identifier 'Log'
This doesn't compile for me.
Collaborator
Author
There was a problem hiding this comment.
hmm, the Log struct is in the PerfectLib, I may not have specified that as an expected dependency. You could use print("Row description: (row)") if you dont want to import PerfectLib. I get so used to having the many Perfect utilities available that I dont work without it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated PGResult to conform to Sequence and IteratorProtocol, created PGRow struct to handle the row based access. Added Tests to cover new functionality.
Also created quickstart examples to illustrate usage.